package com.zzy.dao;

import com.zzy.filter.TypeHanderBlobJSONObject;
import com.zzy.model.Classic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TestAnnotion {

    @Results({
            @Result(column = "content",property = "content",typeHandler = TypeHanderBlobJSONObject.class),
            @Result(column = "id",property = "id")
    })
    @Select(" select id , content from t_classic ")
    List<Classic>  getList();
}
